package br.gov.pe.seres.siap.view.managedBean.NOME_PACKAGE;

import java.util.List;
import javax.inject.Named;
import br.gov.frameworkdemoiselle.annotation.ViewScoped;
import br.gov.frameworkdemoiselle.security.RequiredRole;
import br.gov.frameworkdemoiselle.stereotype.ViewController;
import br.gov.pe.seres.siap.bean.NOME_POJO;
import br.gov.pe.seres.siap.business.implementation.filtro.FiltroNOME_POJO;
import br.gov.pe.seres.siap.constant.AliasNavigationRules;
import br.gov.pe.seres.siap.view.managedBean.SiapListBean;

@ViewController
@ViewScoped
@Named("NOME_ATRIBUTO_BEANListMB")
public class NOME_POJOListMB extends SiapListBean<NOME_POJO, FiltroNOME_POJO> {

	@Override
	@RequiredRole("NOME_POJO.consultar")
	public List<NOME_POJO> consultar() {
		return getFachada().consultarNOME_POJO(getFiltro());
	}

	@Override
	protected String getAliasPaginaEdicao() {
		return AliasNavigationRules.#ALIAS#_EDICAO;
	}

	@Override
	public String tratarPreConsultar() {
		return AliasNavigationRules.#ALIAS#_CONSULTA;
	}

}
